#include "PacketSniffer.h"

PacketSniffer::PacketSniffer(const char* ip, SafeQueue<Packet_t>& queue)
	:PacketListener(ip, queue),
	 PacketResolver(queue){}

void PacketSniffer::start() {
	this->startListening();
	this->startResolving();
}

PacketSniffer::~PacketSniffer() {
	this->stopListening();
	this->stopResolving();
}